package com.future.north.api;

import com.future.north.api.model.DubboMonitor;
import com.future.north.utils.ServiceResult;
import com.github.pagehelper.Page;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface DubboMonitorService {
    /**
     *
     * @return
     */
    ServiceResult<Long> pageCount();

    /**
     *
     * @return
     */
    ServiceResult<List<DubboMonitor>> pageList();

    /**
     *
     * @return
     */
    List<DubboMonitor> findAll();

    /**
     * 分页查询
     * @param pageNo 页号
     * @param pageSize 每页显示记录数
     * @return
     */
    Page<DubboMonitor> findByPage(int pageNo, int pageSize);
}
